﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Lin.EFData.Table
{
    [Serializable]
    [Table("LinRole")]
    public class LinRole
    {
        public LinRole()
        {
            rRwid = 0;
            rGuid = string.Empty;
            rName = string.Empty;
            rMenu = string.Empty;
            rStop = false;
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("rRwid")]
        public Int32 rRwid { get; set; }

        [MaxLength(32)]
        [Column("rGuid")]
        public String rGuid { get; set; }

        [MaxLength(20)]
        [Column("rName")]
        public String rName { get; set; }

        [MaxLength()]
        [Column("rMenu")]
        public String rMenu { get; set; }

        [Column("rStop")]
        public Boolean rStop { get; set; }

    }
}
